SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO


CREATE PROCEDURE dbo.[DnnProduct_GetFolders]
	@PortalID int
AS
BEGIN
	SELECT *
	FROM dbo.DnnProduct_Folders
	WHERE (PortalID = @PortalID) OR (PortalID is null AND @PortalID is null)
	ORDER BY FolderPath
END
GO
